<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>帮助中心 - SaaS Dashboard</title>
    <!-- 引入Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- 引入Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <!-- 引入Chart.js -->
    <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
    <!-- 自定义CSS -->
    <style>
        /* 全局样式 */
        :root {
            --primary-color: #4f46e5;
            --secondary-color: #64748b;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --danger-color: #ef4444;
            --light-bg: #f8fafc;
            --dark-bg: #0f172a;
            --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--light-bg);
            color: #334155;
            overflow-x: hidden;
        }

        /* 加载动画 */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary-color);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .loader.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loader::after {
            content: '';
            width: 50px;
            height: 50px;
            border: 5px solid #fff;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* 主容器 */
        .main-container {
            display: flex;
            min-height: 100vh;
        }

        /* 侧边栏 */
        .sidebar {
            width: 280px;
            background-color: #2c3e50;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            position: fixed;
            height: 100vh;
            overflow-y: auto;
            z-index: 100;
            color: white;
        }

        .sidebar.collapsed {
            width: 80px;
        }

        .sidebar.collapsed .logo-text {
            display: none;
        }

        .sidebar.collapsed .nav-text {
            display: none;
        }

        .sidebar.collapsed .sidebar-header {
            justify-content: center;
        }

        .sidebar.collapsed .sidebar-nav a {
            justify-content: center;
            padding: 12px 0;
            font-size: 0;
        }

        .sidebar.collapsed .sidebar-nav a i {
            margin-right: 0;
            font-size: 16px;
        }

        /* 侧边栏头部 */
        .sidebar-header {
            padding: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #34495e;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary-color), #818cf8);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 1.5rem;
            font-weight: bold;
        }

        .logo-text {
            font-size: 1.25rem;
            font-weight: 700;
            color: white;
        }

        .sidebar-toggle {
            background: none;
            border: none;
            font-size: 1.25rem;
            color: white;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 4px;
            transition: var(--transition);
        }

        .sidebar-toggle:hover {
            background-color: #34495e;
            color: white;
        }

        /* 侧边栏导航 */
        .sidebar-nav {
            padding: 1rem 0;
        }

        .nav-item {
            margin-bottom: 0.25rem;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1.5rem;
            color: white;
            text-decoration: none;
            transition: var(--transition);
            border-left: 3px solid transparent;
        }

        .nav-link:hover {
            background-color: #34495e;
            border-left-color: #3498db;
        }

        .nav-link.active {
            background-color: #34495e;
            color: white;
            border-left-color: #3498db;
            font-weight: 500;
        }

        .nav-icon {
            font-size: 1.125rem;
            width: 20px;
            text-align: center;
        }

        .nav-text {
            font-weight: 500;
        }

        /* 主内容区域 */
        .main-content {
            flex: 1;
            margin-left: 280px;
            transition: var(--transition);
        }

        .main-content.expanded {
            margin-left: 80px;
        }

        /* 顶部导航栏 */
        .top-nav {
            background-color: #fff;
            box-shadow: var(--card-shadow);
            padding: 1rem 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 99;
        }

        .nav-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* 搜索框 */
        .search-box {
            position: relative;
        }

        .search-box input {
            width: 300px;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 0.875rem;
            transition: var(--transition);
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .search-box .fa-search {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary-color);
        }

        /* 导航右侧 */
        .nav-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* 通知图标 */
        .notification-icon {
            position: relative;
            font-size: 1.25rem;
            color: var(--secondary-color);
            cursor: pointer;
            transition: var(--transition);
        }

        .notification-icon:hover {
            color: var(--primary-color);
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--danger-color);
            color: #fff;
            font-size: 0.75rem;
            padding: 0.125rem 0.375rem;
            border-radius: 50%;
            min-width: 18px;
            text-align: center;
        }

        /* 用户信息 */
        .user-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 8px;
            transition: var(--transition);
        }

        .user-info:hover {
            background-color: #f1f5f9;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), #818cf8);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 600;
        }

        .user-details {
            display: flex;
            flex-direction: column;
        }

        .user-name {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--dark-bg);
        }

        .user-role {
            font-size: 0.75rem;
            color: var(--secondary-color);
        }

        /* 内容区域 */
        .content {
            padding: 2rem;
        }

        /* 页面标题 */
        .page-title {
            margin-bottom: 2rem;
        }

        .page-title h1 {
            font-size: 1.875rem;
            font-weight: 700;
            color: var(--dark-bg);
            margin: 0;
        }

        /* 内容头部 */
        .content-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        /* 帮助中心布局 */
        .help-container {
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 2rem;
            margin-top: 2rem;
        }

        /* 帮助中心侧边栏 */
        .help-sidebar {
            background-color: #fff;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            border: 1px solid #e2e8f0;
            padding: 1.5rem;
        }

        .help-sidebar h3 {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--dark-bg);
            margin-bottom: 1.5rem;
        }

        .help-nav {
            list-style: none;
        }

        .help-nav-item {
            margin-bottom: 0.5rem;
        }

        .help-nav-link {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            color: var(--secondary-color);
            text-decoration: none;
            border-radius: 8px;
            transition: var(--transition);
            font-size: 0.875rem;
        }

        .help-nav-link:hover {
            background-color: #f1f5f9;
            color: var(--primary-color);
        }

        .help-nav-link.active {
            background-color: #ede9fe;
            color: var(--primary-color);
        }

        .help-nav-link i {
            width: 20px;
            text-align: center;
        }

        /* 帮助中心内容 */
        .help-content {
            background-color: #fff;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            border: 1px solid #e2e8f0;
            padding: 2rem;
        }

        /* 帮助卡片 */
        .help-card {
            background-color: #f8fafc;
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border-left: 4px solid var(--primary-color);
        }

        .help-card h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--dark-bg);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .help-card p {
            color: var(--secondary-color);
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .help-card ul {
            margin-left: 1.5rem;
            margin-bottom: 1rem;
        }

        .help-card li {
            color: var(--secondary-color);
            line-height: 1.6;
            margin-bottom: 0.5rem;
        }

        /* 常见问题 */
        .faq-section {
            margin-top: 2rem;
        }

        .faq-section h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark-bg);
            margin-bottom: 1.5rem;
        }

        .faq-item {
            margin-bottom: 1.5rem;
            border-bottom: 1px solid #f1f5f9;
            padding-bottom: 1.5rem;
        }

        .faq-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .faq-question {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--dark-bg);
            margin-bottom: 0.75rem;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .faq-question i {
            transition: var(--transition);
        }

        .faq-question.active i {
            transform: rotate(180deg);
        }

        .faq-answer {
            color: var(--secondary-color);
            line-height: 1.6;
            display: none;
        }

        .faq-answer.active {
            display: block;
        }

        /* 联系支持 */
        .contact-section {
            margin-top: 3rem;
            padding: 2rem;
            background-color: #f8fafc;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
        }

        .contact-section h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark-bg);
            margin-bottom: 1rem;
        }

        .contact-section p {
            color: var(--secondary-color);
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

        .contact-info {
            display: flex;
            gap: 2rem;
            flex-wrap: wrap;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: var(--card-shadow);
            border: 1px solid #e2e8f0;
        }

        .contact-item i {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #ede9fe;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.125rem;
        }

        .contact-details h4 {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--dark-bg);
            margin-bottom: 0.25rem;
        }

        .contact-details p {
            font-size: 0.875rem;
            color: var(--secondary-color);
            margin: 0;
        }

        /* 响应式设计 */
        @media (max-width: 1024px) {
            .help-container {
                grid-template-columns: 1fr;
            }

            .help-sidebar {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
            }

            .top-nav {
                padding: 1rem;
            }

            .search-box input {
                width: 200px;
            }

            .content {
                padding: 1rem;
            }

            .content-header {
                flex-direction: column;
                align-items: stretch;
            }

            .contact-info {
                flex-direction: column;
            }
        }

        /* 滚动条样式 */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f5f9;
        }

        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }
    </style>
</head>
<body>
    <!-- 加载动画 -->
    <div class="loader"></div>

    <div class="main-container">
        <!-- 侧边栏 -->
        <aside class="sidebar" id="sidebar">
            <div class="sidebar-header">
                <div class="logo">
                    <div class="logo-icon">S</div>
                    <span class="logo-text">平台端系统</span>
                </div>
                <button class="sidebar-toggle" id="sidebarToggle">
                <i class="fa fa-angle-left toggle-icon"></i>
            </button>
            </div>
            <nav class="sidebar-nav">
                <a href="index.html" class="nav-link">
                    <i class="fa fa-dashboard nav-icon"></i>
                    <span class="nav-text">仪表盘</span>
                </a>
                <a href="users.html" class="nav-link">
                    <i class="fa fa-users nav-icon"></i>
                    <span class="nav-text">用户管理</span>
                </a>
                <a href="analytics.html" class="nav-link">
                    <i class="fa fa-bar-chart nav-icon"></i>
                    <span class="nav-text">数据分析</span>
                </a>
                <a href="tenant-settings.html" class="nav-link">
                    <i class="fa fa-building nav-icon"></i>
                    <span class="nav-text">租户设置</span>
                </a>
                <a href="contracts.html" class="nav-link">
                    <i class="fa fa-file-text-o nav-icon"></i>
                    <span class="nav-text">合同管理</span>
                </a>
                <a href="settings.html" class="nav-link">
                    <i class="fa fa-cog nav-icon"></i>
                    <span class="nav-text">系统设置</span>
                </a>
                <a href="notifications.html" class="nav-link">
                    <i class="fa fa-bell nav-icon"></i>
                    <span class="nav-text">通知中心</span>
                </a>
                <a href="reports.html" class="nav-link">
                    <i class="fa fa-file-text nav-icon"></i>
                    <span class="nav-text">报表管理</span>
                </a>
                <a href="orders.html" class="nav-link">
                    <i class="fa fa-shopping-cart nav-icon"></i>
                    <span class="nav-text">订单管理</span>
                </a>
                <a href="help.html" class="nav-link active">
                    <i class="fa fa-question-circle nav-icon"></i>
                    <span class="nav-text">帮助中心</span>
                </a>
            </nav>
        </aside>

        <!-- 主内容 -->
        <main class="main-content" id="mainContent">
            <!-- 顶部导航栏 -->
            <nav class="top-nav">
                <div class="nav-left">
                    <button class="sidebar-toggle d-md-none" id="mobileSidebarToggle">
                        <i class="fa fa-bars"></i>
                    </button>
                    <div class="search-box">
                        <i class="fa fa-search"></i>
                        <input type="text" placeholder="搜索帮助文档...">
                    </div>
                </div>
                <div class="nav-right">
                    <div class="notification-icon">
                        <i class="fa fa-bell"></i>
                        <span class="notification-badge">3</span>
                    </div>
                    <div class="user-info">
                        <div class="user-avatar">JD</div>
                        <div class="user-details">
                            <div class="user-name">John Doe</div>
                            <div class="user-role">管理员</div>
                        </div>
                        <i class="fa fa-chevron-down"></i>
                    </div>
                </div>
            </nav>

            <!-- 内容区域 -->
            <div class="content">
                <!-- 页面标题 -->
                <div class="page-title">
                    <h1>帮助中心</h1>
                </div>

                <!-- 内容头部 -->
                <div class="content-header">
                    <div class="content-info">
                        <p class="text-muted">获取系统使用帮助、常见问题解答和联系支持</p>
                    </div>
                    <div class="content-actions">
                        <button class="btn btn-primary">
                            <i class="fa fa-question-circle"></i>
                            联系支持
                        </button>
                        <button class="btn btn-secondary">
                            <i class="fa fa-file-text-o"></i>
                            查看文档
                        </button>
                    </div>
                </div>

                <!-- 帮助中心内容 -->
                <div class="help-container">
                    <!-- 帮助中心侧边栏 -->
                    <aside class="help-sidebar">
                        <h3>帮助分类</h3>
                        <ul class="help-nav">
                            <li class="help-nav-item">
                                <a href="#" class="help-nav-link active">
                                    <i class="fa fa-home"></i>
                                    快速入门
                                </a>
                            </li>
                            <li class="help-nav-item">
                                <a href="#" class="help-nav-link">
                                    <i class="fa fa-users"></i>
                                    用户管理
                                </a>
                            </li>
                            <li class="help-nav-item">
                                <a href="#" class="help-nav-link">
                                    <i class="fa fa-bar-chart"></i>
                                    数据分析
                                </a>
                            </li>
                            <li class="help-nav-item">
                                <a href="#" class="help-nav-link">
                                    <i class="fa fa-cog"></i>
                                    系统设置
                                </a>
                            </li>
                            <li class="help-nav-item">
                                <a href="#" class="help-nav-link">
                                    <i class="fa fa-file-text"></i>
                                    报表管理
                                </a>
                            </li>
                            <li class="help-nav-item">
                                <a href="#" class="help-nav-link">
                                    <i class="fa fa-shopping-cart"></i>
                                    订单管理
                                </a>
                            </li>
                            <li class="help-nav-item">
                                <a href="#" class="help-nav-link">
                                    <i class="fa fa-exclamation-circle"></i>
                                    常见问题
                                </a>
                            </li>
                        </ul>
                    </aside>

                    <!-- 帮助中心主内容 -->
                    <div class="help-content">
                        <!-- 快速入门 -->
                        <div class="help-card">
                            <h3>
                                <i class="fa fa-rocket"></i>
                                快速入门指南
                            </h3>
                            <p>欢迎使用 平台端系统！以下是快速入门的几个关键步骤，帮助您快速熟悉系统功能：</p>
                            <ul>
                                <li><strong>步骤 1：</strong>登录系统后，您将看到仪表盘页面，这里展示了系统的核心指标和数据概览。</li>
                                <li><strong>步骤 2：</strong>在左侧菜单栏中，您可以访问各个功能模块，包括用户管理、数据分析、系统设置等。</li>
                                <li><strong>步骤 3：</strong>在用户管理页面，您可以添加、编辑和删除系统用户。</li>
                                <li><strong>步骤 4：</strong>在数据分析页面，您可以查看各种数据图表和报告。</li>
                                <li><strong>步骤 5：</strong>在系统设置页面，您可以配置系统的各种参数和选项。</li>
                            </ul>
                            <p>如果您在使用过程中遇到任何问题，请查看常见问题解答或联系我们的支持团队。</p>
                        </div>

                        <!-- 常见问题 -->
                        <div class="faq-section">
                            <h2>常见问题</h2>
                            
                            <div class="faq-item">
                                <div class="faq-question">
                                    <span>如何添加新用户？</span>
                                    <i class="fa fa-chevron-down"></i>
                                </div>
                                <div class="faq-answer">
                                    <p>要添加新用户，请按照以下步骤操作：</p>
                                    <ol>
                                        <li>在左侧菜单栏中点击「用户管理」。</li>
                                        <li>在用户管理页面，点击「添加用户」按钮。</li>
                                        <li>填写用户信息，包括用户名、邮箱、密码和角色。</li>
                                        <li>点击「保存」按钮完成添加。</li>
                                    </ol>
                                </div>
                            </div>

                            <div class="faq-item">
                                <div class="faq-question">
                                    <span>如何生成报表？</span>
                                    <i class="fa fa-chevron-down"></i>
                                </div>
                                <div class="faq-answer">
                                    <p>要生成报表，请按照以下步骤操作：</p>
                                    <ol>
                                        <li>在左侧菜单栏中点击「报表管理」。</li>
                                        <li>在报表管理页面，点击「生成新报表」按钮。</li>
                                        <li>选择报表类型、日期范围和其他参数。</li>
                                        <li>点击「生成报表」按钮开始生成。</li>
                                        <li>生成完成后，您可以查看、下载或分享报表。</li>
                                    </ol>
                                </div>
                            </div>

                            <div class="faq-item">
                                <div class="faq-question">
                                    <span>如何修改系统设置？</span>
                                    <i class="fa fa-chevron-down"></i>
                                </div>
                                <div class="faq-answer">
                                    <p>要修改系统设置，请按照以下步骤操作：</p>
                                    <ol>
                                        <li>在左侧菜单栏中点击「系统设置」。</li>
                                        <li>在系统设置页面，您可以看到多个设置选项卡，包括基本设置、安全设置、邮件设置等。</li>
                                        <li>点击相应的选项卡，修改您需要的设置。</li>
                                        <li>点击「保存」按钮保存修改。</li>
                                    </ol>
                                </div>
                            </div>

                            <div class="faq-item">
                                <div class="faq-question">
                                    <span>如何查看通知？</span>
                                    <i class="fa fa-chevron-down"></i>
                                </div>
                                <div class="faq-answer">
                                    <p>要查看通知，请按照以下步骤操作：</p>
                                    <ol>
                                        <li>在顶部导航栏中点击通知图标（铃铛图标）。</li>
                                        <li>您将看到通知下拉列表，显示最新的系统通知。</li>
                                        <li>点击通知标题可以查看详细信息。</li>
                                        <li>您也可以点击「查看全部通知」按钮进入通知中心页面，查看所有通知。</li>
                                    </ol>
                                </div>
                            </div>

                            <div class="faq-item">
                                <div class="faq-question">
                                    <span>如何管理订单？</span>
                                    <i class="fa fa-chevron-down"></i>
                                </div>
                                <div class="faq-answer">
                                    <p>要管理订单，请按照以下步骤操作：</p>
                                    <ol>
                                        <li>在左侧菜单栏中点击「订单管理」。</li>
                                        <li>在订单管理页面，您可以查看所有订单的列表。</li>
                                        <li>使用筛选器可以根据订单状态、日期范围等条件过滤订单。</li>
                                        <li>点击订单号可以查看订单详情。</li>
                                        <li>您可以对订单进行编辑、删除、导出等操作。</li>
                                    </ol>
                                </div>
                            </div>
                        </div>

                        <!-- 联系支持 -->
                        <div class="contact-section">
                            <h2>需要更多帮助？</h2>
                            <p>如果您在使用过程中遇到任何问题，或者有任何建议和反馈，欢迎通过以下方式联系我们的支持团队：</p>
                            <div class="contact-info">
                                <div class="contact-item">
                                    <i class="fa fa-envelope"></i>
                                    <div class="contact-details">
                                        <h4>邮箱支持</h4>
                                        <p>support@saasdash.com</p>
                                    </div>
                                </div>
                                <div class="contact-item">
                                    <i class="fa fa-phone"></i>
                                    <div class="contact-details">
                                        <h4>电话支持</h4>
                                        <p>400-123-4567</p>
                                    </div>
                                </div>
                                <div class="contact-item">
                                    <i class="fa fa-clock-o"></i>
                                    <div class="contact-details">
                                        <h4>工作时间</h4>
                                        <p>周一至周五 9:00-18:00</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <!-- 引入Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <!-- 自定义JS -->
    <script>
        // 页面加载动画
        window.addEventListener('load', () => {
            const loader = document.querySelector('.loader');
            loader.classList.add('hidden');
        });

        // 侧边栏切换
        const sidebarToggle = document.getElementById('sidebarToggle');
        const sidebar = document.getElementById('sidebar');
        const mainContent = document.getElementById('mainContent');
        const mobileSidebarToggle = document.getElementById('mobileSidebarToggle');

        sidebarToggle.addEventListener('click', () => {
            sidebar.classList.toggle('collapsed');
            mainContent.classList.toggle('expanded');
            // 切换按钮图标
            const toggleIcon = sidebarToggle.querySelector('.toggle-icon');
            if (sidebar.classList.contains('collapsed')) {
                toggleIcon.classList.remove('fa-angle-left');
                toggleIcon.classList.add('fa-angle-right');
            } else {
                toggleIcon.classList.remove('fa-angle-right');
                toggleIcon.classList.add('fa-angle-left');
            }
        });

        mobileSidebarToggle.addEventListener('click', () => {
            sidebar.classList.toggle('open');
        });

        // 点击主内容区域关闭侧边栏（移动端）
        mainContent.addEventListener('click', () => {
            if (sidebar.classList.contains('open')) {
                sidebar.classList.remove('open');
            }
        });

        // FAQ 折叠功能
        const faqQuestions = document.querySelectorAll('.faq-question');
        faqQuestions.forEach(question => {
            question.addEventListener('click', () => {
                const answer = question.nextElementSibling;
                const icon = question.querySelector('i');
                
                answer.classList.toggle('active');
                question.classList.toggle('active');
                icon.classList.toggle('fa-chevron-down');
                icon.classList.toggle('fa-chevron-up');
            });
        });

        // 帮助导航链接点击效果
        const helpNavLinks = document.querySelectorAll('.help-nav-link');
        helpNavLinks.forEach(link => {
            link.addEventListener('click', (e) => {
                e.preventDefault();
                helpNavLinks.forEach(l => l.classList.remove('active'));
                link.classList.add('active');
            });
        });
    </script>
</body>
</html>